public class test {
    public static int func(int[]arr,int ret){
        for (int i = 0; i < arr.length; i++) {
            ret=ret^arr[i];
        }
        return ret;
    }
    public static void main(String[] args) {
        int[]arr={1,2,3,2,3};
        int ret=0;
        System.out.println(func(arr,ret));
    }
}
